package net.sppan.base.service;

import net.sppan.base.entity.mgEntity.MgUserAward;
import net.sppan.base.entity.mgEntity.MgUserAward;
import net.sppan.base.service.support.IBaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * <p>
 * 用户服务类
 * </p>
 *
 * @author SPPan
 * @since 2016-12-28
 */
public interface IMgUserAwardService extends IBaseService<MgUserAward, Integer> {

    List<MgUserAward> findByUserIdAndSourceType(int userId,String sourceType);
    List<MgUserAward> findByUserId(int userId);
}
